<?php include_once 'include/func.class.php';?>
<?php 
if($_SESSION['member']==''){
setcookie('user_id',null,time()-1);
}
needlogin('user_id','login.php');

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link href="css/css.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/ajax.js"></script>
<script language="JavaScript" type="text/javascript" src="js/datepicker/WdatePicker.js"></script>
<?php headinfo() ;?>
<link href="css/survey.css" rel="stylesheet" type="text/css" />
<link href="css/manage.css" rel="stylesheet" type="text/css" />
<style>
#scrollDiv{width:960px;height:25px;line-height:25px;border:#ccc 1px solid;overflow:hidden}
#scrollDiv li{height:25px;padding-left:10px;}
</style>
<script type="text/javascript">
function AutoScroll(obj){
$(obj).find("ul:first").animate({
marginTop:"-25px"
},1000,function(){
$(this).css({marginTop:"0px"}).find("li:first").appendTo(this);
});
}
$(document).ready(function(){
setInterval('AutoScroll("#scrollDiv")',3000);

});
</script>

<script src="js/slides.min.jquery.js"></script>
	<script>
		$(function(){
			// Set starting slide to 1
			var startSlide = 1;
			// Get slide number if it exists
			if (window.location.hash) {
				startSlide = window.location.hash.replace('#','');
			}
			// Initialize Slides
			$('#slides').slides({
				preload: true,
				preloadImage: 'img/loading.gif',
				generatePagination: true,
				play: 5000,
				pause: 2500,
				hoverPause: true,
				// Get the starting slide
				start: startSlide,
				animationComplete: function(current){
					// Set the slide number as a hash
					window.location.hash = '#' + current;
				}
			});
			


			
					
		});
	</script>
	
	<link rel="stylesheet" href="css/global.css">
</head>
<body>

	<div>
    	<div class="header">
			<div class="header-a">
            	<div class="allbody">
                	<div class="fl"><img src="images/logo.jpg"></div>
                    <div class="fr hy">
                    
					<span style="width:250px; display:block; float:right;">Welcome&nbsp;
					<a href="logout.php">Logout</a>&nbsp;&nbsp;&nbsp;&nbsp;
                  
					</span>
                    <span style="line-height:20px; clear:both;float:right; width:350px; margin-top:10px;">
<?php 
$sql="select * from member where FROM_UNIXTIME(m_birthday,'%Y%m%d')='".date('Ymd')."'";
$result = mysql_query($sql) or die (mysql_error());
$recount=mysql_num_rows($result);
if($recount==0){
	echo 'No member birthdays today!';
	//echo $sql;
}else{
	while($row = mysql_fetch_array($result)){
    	$members[]=$row['id'];
	}
	echo 'Today, ['.count($members).'] members birthday .<a href="javascript:send_member_mail(\''.implode(',',$members).'\');"> [click here] </a> to email them to bless!';
} ?>
                     
                     
                     
                    </span>
                    
					</div>
                    <div class="clear"></div>
                </div>
            </div>
        </div>
        <div class="menu">
        	<div class="allbody">

            </div>
        </div>
    </div>
